package com.hoshiicloud.user.entity.usercenter;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author yangcheng
 * @create 2019-04-26
 */
@ApiModel
@Data
public class UserCenterBaseEntity implements Serializable {

    private static final long serialVersionUID = 7206161066546192307L;

    /**
     * ID
      */
    @ApiModelProperty(name = "id", value = "ID", dataType = "java.lang.Long", hidden = true)
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createdTime", value = "创建时间", required = true, dataType = "java.util.Date", hidden = true)
    private LocalDateTime createdTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "updatedTime", value = "修改时间", required = true, dataType = "java.util.Date", hidden = true)
    private LocalDateTime updatedTime;

    /**
     * 建立人
     */
    @ApiModelProperty(name = "createdBy", value = "建立人", required = true, dataType = "java.lang.String", hidden = true)
    private String createdBy;

    /**
     * 修改人
     */
    @ApiModelProperty(name = "updatedBy", value = "修改人", required = true, dataType = "java.lang.String", hidden = true)
    private String updatedBy;

    /**
     * 删除标识 0-未删除 1-已删除 默认0
     */
    @ApiModelProperty(name = "deleted", value = "删除标识", required = true, dataType = "java.lang.Integer", hidden = true)
    private Integer deleted;

    /**
     *当前页
     */
    @ApiModelProperty(name = "pageIndex", value = "当前页码", dataType = "java.lang.Long", hidden = true)
    @TableField(exist = false)
    private Long pageIndex = 1L;

    /**
     *每页数量从1开始
     */
    @ApiModelProperty(name = "pageSize", value = "每页大小", dataType = "java.lang.Long", hidden = true)
    @TableField(exist = false)
    private Long pageSize = 10L;

}
